package org.wk.user.domain;

import org.hibernate.annotations.GenericGenerator;
import org.wk.core.db.domain.BaseEntity;

import javax.persistence.*;

/**
 * @ClassName	: UserPromoteRelation
 * @Package		：org.wk.user.domain.UserPromoteRelation
 * @Author df.w 
 * @Create Time	：2018年5月5日 上午11:06:18
 * @Description	: 用户推广关系
 */ 
@Entity(name="org.wk.user.domain.UserPromoteRelation")
@Table(name="s_user_promote_relation")
public class UserPromoteRelation extends BaseEntity{
	/**
	* @Fields serialVersionUID: long
	* @Desc TODO: 
	*/
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 32)
	@GeneratedValue(generator="system-uuid")
	@GenericGenerator(name="system-uuid",strategy = "uuid")
	private String id;

	/**
	 * 用户ID
	 */
	@Column
	private String userId;

	/**
	 * 关系 几级父类  1级父类为直属上级
	 */
	@Column
	private int relationship;

	/**
	 * 父id
	 */
	@Column
	private String parentId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public int getRelationship() {
		return relationship;
	}

	public void setRelationship(int relationship) {
		this.relationship = relationship;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
}
